package com.wave.wavesystem.serve.pojo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.wave.common.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@Table("wave_file_upload")
@EqualsAndHashCode(callSuper = true)
public class FileUpload extends BaseEntity {

    @Column(value = "userId", comment = "用户id")
    private Long userId;

    @Column(value = "originalName", comment = "文件原始名")
    private String originalName;

    @Column(value = "sortedName", comment = "系统修改后的文件名")
    private String sortedName;

    @Column(value = "url", comment = "文件url")
    private String url;

    @Column(value = "bucket", comment = "文件所属桶")
    private String bucket;

    @Column(value = "endpoint", comment = "文件所属节点")
    private String endpoint;

    @Column(value = "fileSize", comment = "文件大小，单位：字节")
    private Long fileSize;

    @Column(value = "fileType", comment = "文件类型")
    private String fileType;

}